package org.csu.mypetstoreapi.service;


import org.csu.mypetstoreapi.common.CommonResponse;
import org.csu.mypetstoreapi.entity.Order;
import org.csu.mypetstoreapi.entity.User;

import java.util.List;

public interface OrderService {
//订单状态有：未支付、未发货、已发货、已收货、已取消五种

    CommonResponse<Order> getOrder(int orderId);
    CommonResponse<List<Order>> findAllOrders(User loginUser);
    int getNextOrderId();
    void updateNextOrderId();

}
